﻿using System.ComponentModel;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Library.WebControls.SimpleGridView {
	[SupportsEventValidation]
	[PersistChildren(true)]
	[DesignTimeVisible(true)]
	[TypeConverter(typeof(ExpandableObjectConverter))]
	public class HeaderRowStyle {
		public HeaderRowStyle() {
			HeaderStyle = new HeaderStyle();
			HeaderStyle.VerticalAlign = VerticalAlign.Middle;
			HeaderStyle.HorizontalAlign = HorizontalAlign.Center;

			ExportStyle = new HeaderStyle();
			ExportStyle.VerticalAlign = VerticalAlign.Middle;
			ExportStyle.HorizontalAlign = HorizontalAlign.Center;
		}
		[PersistenceMode(PersistenceMode.InnerProperty)]
		[MergableProperty(false)]
		[Category("Data")]
		[DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]


		public HeaderStyle HeaderStyle { get; private set; }
		[PersistenceMode(PersistenceMode.InnerProperty)]
		[MergableProperty(false)]
		[Category("Data")]
		[DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]

		public HeaderStyle ExportStyle { get; private set; }
	}
}
